package cn.edu.scau.cmi.chenyaoquan.composite.consistent;

import java.util.HashSet;
import java.util.Set;

public abstract class ConsistentComponent {
	public ConsistentComponent parent = null;
	public Set<ConsistentComponent> children=new HashSet<ConsistentComponent>();
	
	public abstract String doSomething();
	public abstract ConsistentComponent getParent();
	public abstract ConsistentComponent addChild(ConsistentComponent child);
	public abstract ConsistentComponent removeChild(ConsistentComponent child);
	public abstract Set<ConsistentComponent> getChildren();

}
